public class Work02 {
    public static int Fibonacci(int i){
       if(i<=1){
           return i;
       }else{
           return Fibonacci(i-1)+Fibonacci(i-2);
       }
    }
    public static void main(String[] args) {
        System.out.println("打印斐波那契数列 ");
        int i=30;
        for (int j=1;j<=i;j++){
            System.out.print(Fibonacci(j)+" ");
        }
    }
}
